package com.wen.configs;

import com.wen.bean.UserInfoBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
//配置类
@Configuration
/**
 * //注解的扫描范围
 */
@ComponentScan(basePackages = "com.wen")
public class Appconfig {
    @Bean
    public UserInfoBean transferService() {
        UserInfoBean userInfoBean = new UserInfoBean();
        userInfoBean.setUserName("小米");
        return userInfoBean;
    }

}
